home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / Carbon SDK 1.0d10c3 / Sample Code / AppearanceSample / Makefile.preamble < prev    next >
Encoding:
Makefile  |  1999-05-01  |  7.5 KB  |  154 lines  |  [TEXT/ttxt]

  1. ###############################################################################
  2. #  Makefile.preamble
  3. #  Copyright 1997, Apple Computer, Inc.
  4. #
  5. #  Use this makefile for configuring the standard application makefiles 
  6. #  associated with ProjectBuilder. It is included before the main makefile.
  7. #  In Makefile.preamble you set attributes for a project, so they are available
  8. #  to the project's makefiles.  In contrast, you typically write additional rules or 
  9. #  override built-in behavior in the Makefile.postamble.
  10. #  
  11. #  Each directory in a project tree (main project plus subprojects) should 
  12. #  have its own Makefile.preamble and Makefile.postamble.
  13. ###############################################################################
  14. #
  15. # Before the main makefile is included for this project, you may set:
  16. #
  17. #    MAKEFILEDIR: Directory in which to find $(MAKEFILE)
  18. #    MAKEFILE: Top level mechanism Makefile (e.g., app.make, bundle.make)
  19. CURRENT_PROJECT_VERSION = 4
  20. COMPATIBILITY_PROJECT_VERSION = 2
  21. VERSIONING_SYSTEM = apple-generic
  22. VERSION_INFO_CVS = YES
  23.  
  24. RC_SUBMIT_TOOL = /Net/seaport/release/bin/submitproject 
  25. RC_SUBMIT_TARGETS += Beaker
  26. # Compiler/linker flags added to the defaults:  The OTHER_* variables will be 
  27. # inherited by all nested sub-projects, but the LOCAL_ versions of the same
  28. # variables will not.  Put your -I, -D, -U, and -L flags in ProjectBuilder's
  29. # Build Attributes inspector if at all possible.  To override the default flags
  30. # that get passed to ${CC} (e.g. change -O to -O2), see Makefile.postamble.  The
  31. # variables below are *inputs* to the build process and distinct from the override
  32. # settings done (less often) in the Makefile.postamble.
  33. #
  34. #    OTHER_CFLAGS, LOCAL_CFLAGS:  additional flags to pass to the compiler
  35. #    Note that $(OTHER_CFLAGS) and $(LOCAL_CFLAGS) are used for .h, ...c, .m,
  36. #    .cc, .cxx, .C, and .M files.  There is no need to respecify the
  37. #    flags in OTHER_MFLAGS, etc.
  38. #    OTHER_MFLAGS, LOCAL_MFLAGS:  additional flags for .m files
  39. #    OTHER_CCFLAGS, LOCAL_CCFLAGS:  additional flags for .cc, .cxx, and ...C files
  40. #    OTHER_MMFLAGS, LOCAL_MMFLAGS:  additional flags for .mm and .M files
  41. #    OTHER_PRECOMPFLAGS, LOCAL_PRECOMPFLAGS:  additional flags used when
  42. #    precompiling header files
  43. #    OTHER_LDFLAGS, LOCAL_LDFLAGS:  additional flags passed to ld and libtool
  44. #    OTHER_PSWFLAGS, LOCAL_PSWFLAGS:  additional flags passed to pswrap
  45. #    OTHER_RPCFLAGS, LOCAL_RPCFLAGS:  additional flags passed to rpcgen
  46. #    OTHER_YFLAGS, LOCAL_YFLAGS:  additional flags passed to yacc
  47. #    OTHER_LFLAGS, LOCAL_LFLAGS:  additional flags passed to lex
  48.  
  49. # These variables provide hooks enabling you to add behavior at almost every 
  50. # stage of the make:
  51. #
  52. #    BEFORE_PREBUILD: targets to build before installing headers for a subproject
  53. #    AFTER_PREBUILD: targets to build after installing headers for a subproject
  54. #    BEFORE_BUILD_RECURSION: targets to make before building subprojects
  55. #    BEFORE_BUILD: targets to make before a build, but after subprojects
  56. #    AFTER_BUILD: targets to make after a build
  57. #
  58. #    BEFORE_INSTALL: targets to build before installing the product
  59. #    AFTER_INSTALL: targets to build after installing the product
  60. #    BEFORE_POSTINSTALL: targets to build before postinstalling every subproject
  61. #    AFTER_POSTINSTALL: targts to build after postinstalling every subproject
  62. #
  63. #    BEFORE_INSTALLHDRS: targets to build before installing headers for a 
  64. #         subproject
  65. #    AFTER_INSTALLHDRS: targets to build after installing headers for a subproject
  66. #    BEFORE_INSTALLSRC: targets to build before installing source for a subproject
  67. #    AFTER_INSTALLSRC: targets to build after installing source for a subproject
  68. #
  69. #    BEFORE_DEPEND: targets to build before building dependencies for a
  70. #      subproject
  71. #    AFTER_DEPEND: targets to build after building dependencies for a
  72. #      subproject
  73. #
  74. #    AUTOMATIC_DEPENDENCY_INFO: if YES, then the dependency file is
  75. #      updated every time the project is built.  If NO, the dependency
  76. #      file is only built when the depend target is invoked.
  77.  
  78. # Framework-related variables:
  79. #    FRAMEWORK_DLL_INSTALLDIR:  On Windows platforms, this variable indicates
  80. #    where to put the framework's DLL.  This variable defaults to 
  81. #    $(INSTALLDIR)/../Executables
  82.  
  83. # Library-related variables:
  84. #    PUBLIC_HEADER_DIR:  Determines where public exported header files
  85. #    should be installed.  Do not include $(DSTROOT) in this value --
  86. #    it is prefixed automatically.  For library projects you should
  87. #       set this to something like /Developer/Headers/$(NAME).  Do not set
  88. #       this variable for framework projects unless you do not want the
  89. #       header files included in the framework.
  90. #    PRIVATE_HEADER_DIR:  Determines where private exported header files
  91. #      should be installed.  Do not include $(DSTROOT) in this value --
  92. #    it is prefixed automatically.
  93. #    LIBRARY_STYLE:  This may be either STATIC or DYNAMIC, and determines
  94. #      whether the libraries produced are statically linked when they
  95. #    are used or if they are dynamically loadable. This defaults to
  96. #       DYNAMIC.
  97. #    LIBRARY_DLL_INSTALLDIR:  On Windows platforms, this variable indicates
  98. #    where to put the library's DLL.  This variable defaults to 
  99. #    $(INSTALLDIR)/../Executables
  100. #
  101. #    INSTALL_AS_USER: owner of the intalled products (default root)
  102. #    INSTALL_AS_GROUP: group of the installed products (default wheel)
  103. #    INSTALL_PERMISSIONS: permissions of the installed product (default o+rX)
  104. #
  105. #    OTHER_RECURSIVE_VARIABLES: The names of variables which you want to be
  106. #      passed on the command line to recursive invocations of make.  Note that
  107. #    the values in OTHER_*FLAGS are inherited by subprojects automatically --
  108. #    you do not have to (and shouldn't) add OTHER_*FLAGS to 
  109. #    OTHER_RECURSIVE_VARIABLES. 
  110.  
  111. # Additional headers to export beyond those in the PB.project:
  112. #    OTHER_PUBLIC_HEADERS
  113. #    OTHER_PROJECT_HEADERS
  114. #    OTHER_PRIVATE_HEADERS
  115.  
  116. # Additional files for the project's product: <<path relative to proj?>>
  117. #    OTHER_RESOURCES: (non-localized) resources for this project
  118. #    OTHER_OFILES: relocatables to be linked into this project
  119. #    OTHER_LIBS: more libraries to link against
  120. #    OTHER_PRODUCT_DEPENDS: other dependencies of this project
  121. #    OTHER_SOURCEFILES: other source files maintained by .pre/postamble
  122. #    OTHER_GARBAGE: additional files to be removed by `make clean'
  123.  
  124. # Set this to YES if you don't want a final libtool call for a library/framework.
  125. #    BUILD_OFILES_LIST_ONLY
  126.  
  127. # To include a version string, project source must exist in a directory named 
  128. # $(NAME).%d[.%d][.%d] and the following line must be uncommented.
  129. # OTHER_GENERATED_OFILES = $(VERS_OFILE)
  130.  
  131. # This definition will suppress stripping of debug symbols when an executable
  132. # is installed.  By default it is YES.
  133. STRIP_ON_INSTALL = NO
  134.  
  135. # Uncomment to suppress generation of a KeyValueCoding index when installing 
  136. # frameworks (This index is used by WOB and IB to determine keys available
  137. # for an object).  Set to YES by default.
  138. # PREINDEX_FRAMEWORK = NO
  139.  
  140. # Change this definition to install projects somewhere other than the
  141. # standard locations.  NEXT_ROOT defaults to "C:/Apple" on Windows systems
  142. # and "" on other systems.
  143. #DSTROOT = /System
  144. # the following line is a workaround for Burn 1C and should be removed once fixed
  145. OTHER_SOURCEFILES = $(SOURCES) $(wildcard *.r)
  146. BEFORE_INSTALL = my-install-sources
  147. INSTALL_PERMISSIONS = 755
  148. INSTALL_AS_USER = root
  149. INSTALL_AS_GROUP = wheel
  150. EXCLUDED_ARCHS = i386
  151. # Temporary workaround while we transition to beaker
  152. OTHER_CFLAGS = -fpascal-strings -Wno-four-char-constants
  153. OTHER_LDFLAGS = -undefined warning
  154.